#pragma once

class Filer
{
public:
	Filer(void);
	~Filer(void);

	int		OpenFileByTime( CString dir, CString tail, int mode );
	CString GetCurtimeStr( void );

	bool	isOpen() { return misopen; }
	int		OpenRead( CString fn, int mode = 0);
	int		Open( CString fn, int mode = 0 );
	void	Close( void );

	int		Write( unsigned char * buf, int len );
	void	writeLine(CString cs );

public:
	CString		mfn;
	CStdioFile	mfile;
	bool		misopen;

};
